class ShopingCarModel {
  Car car;

  ShopingCarModel({this.car});

  ShopingCarModel.fromJson(Map<String, dynamic> json) {
    car = json['car'] != null ? new Car.fromJson(json['car']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.car != null) {
      data['car'] = this.car.toJson();
    }
    return data;
  }
}

class Car {
  int count;
  List<Good> goods;

  Car({this.count, this.goods});

  Car.fromJson(Map<String, dynamic> json) {
    count = json['count'];
    if (json['goods'] != null) {
      goods = new List<Good>();
      json['goods'].forEach((v) {
        goods.add(new Good.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['count'] = this.count;
    if (this.goods != null) {
      data['goods'] = this.goods.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Good {
  String id;
  String name;
  int count;
  double price;
  String images;

  Good({this.id, this.name, this.count, this.price, this.images});

  Good.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    count = json['count'];
    price = json['price'];
    images = json['images'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['count'] = this.count;
    data['price'] = this.price;
    data['images'] = this.images;
    return data;
  }
}
